package com.atwl.school_system.mapping;

import com.atwl.school_system.bean.Address;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressDao {

    List<Address> getAddress();

    void updateDefaultAddress(@Param("id") Integer id, @Param("flag") Integer flag);

    void updateOther(Integer id);

    Address getAddressById(Integer id);

    void addAddress(Address address);

    void updateAddress(Address address);

}
